package net.bolue.sysmng.util;

public class StringUtil {

	/**
	 * 检测字符串checkStr在startIndex出是否以express开始
	 * @param checkStr		
	 * @param express		
	 * @param startIndex
	 * @return
	 */
	public static boolean startsWithIgnoreCase(String checkStr, 
			String express, int startIndex){
		if ((checkStr == null) || (express == null)){
			return false;
		}
		if (checkStr.length() < express.length() + startIndex){
			return false;
		}
		String subStr = checkStr.substring(startIndex, startIndex + express.length());
		return subStr.equalsIgnoreCase(express);
	}
	
}
